#!/usr/bin/python


from bs4 import BeautifulSoup

from query.task import Task
from query.task import TaskState


class ExtractionTask(Task):
    def __init__(self):
        self.data = None
        self.past_tense = {}
        self.past_participle = {}
        self.present_participle = {}
        self.singular = {}
        self.plural = {}
        self.unknown_var = {}
        self.unknown_type = {}

    def extract(self, wp_data):
        self.data = BeautifulSoup(wp_data, 'lxml').find('li', class_='change clearfix')
        if self.data is None:
            return TaskState.empty

    def execute(self, wp_data):
        pass

    def save(self):
        pass
